/**
 * Created by JetBrains WebStorm.
 * User: denysk
 * Date: 6/8/11
 * Time: 8:28 AM
 * To change this template use File | Settings | File Templates.
 */

Namespace("sketch.ui.dialogs");

(function () {
    // using
    var dialogs = sketch.ui.dialogs,
		fwk = sketch.framework;

    dialogs.Confirmation = klass(fwk.Rectangle, {
        _constructor: function () {
            this.properties.createProperty("text", "Text", "Are you sure?");

            this.width(100);
            this.height(50);
        },
        text:function(/*str*/value){
            if(arguments.length === 0){
                return this.properties.get("text");
            }

            this.properties.set("text", value);
        },
        getType: function () {
            return "dialogs.Confirmation";
        },
        drawSelf:function(context){
            context.textBaseline = "top";
            context.textAlign = "left";
        }
    });
})();